import request from '@/utils/request'

// 查询学制列表
export function listSys(query) {
  return request({
    url: '/teach/sys/list',
    method: 'get',
    params: query
  })
}

// 查询学制详细
export function getSys(sId) {
  return request({
    url: '/teach/sys/' + sId,
    method: 'get'
  })
}

// 新增学制
export function addSys(data) {
  return request({
    url: '/teach/sys',
    method: 'post',
    data: data
  })
}

// 修改学制
export function updateSys(data) {
  return request({
    url: '/teach/sys',
    method: 'put',
    data: data
  })
}

// 删除学制
export function delSys(sId) {
  return request({
    url: '/teach/sys/' + sId,
    method: 'delete'
  })
}
